<?php 
	if ($breadcrumb != NULL && is_array($breadcrumb)){
		echo '<ul class="breadcrumb">';
		$i=0;
		$len = count($breadcrumb);
		foreach ($breadcrumb as $row){
			echo '<li>';
			if ($i==0){
				echo '<i class="icon-home"></i>';
			}
			
			if ($row['link'] != NULL){
				echo '<a href="'.$row['link'].'">'.$row['label'].'</a>';	
			} else {
				echo $row['label'];
			}
			
			if ($i != ($len-1)){
				echo '	  <i class="icon-angle-right"></i>';	
			}
			echo '</li>';
			$i++;
		}
		echo '</ul>';
	}
?>